/**
 * @file      stk_user_agent.h
 * @copyright Copyright (c) 2024, CYG-ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2024-01-09 10:57:00
 *
 * @note
 *  stk_user_agent.h defines
 */
#ifndef __STK_USER_AGENT_H__
#define __STK_USER_AGENT_H__
#include "stk_base.h"

namespace stk
{
class STK_API UserAgent : public MsgField
{
public:
    UserAgent();
    UserAgent(const UserAgent &src);
    UserAgent(const char *buf, int len);
    virtual ~UserAgent();

public:
    UserAgent & operator= (const UserAgent& oSrc);

    virtual	void 	clear();
    virtual	bool	isvalid() const;
    virtual int32_t	to_str(string & str);
    virtual int32_t	parse(const char * szBuf, int nBufLen);

public:
    string		    m_strValue;                /**< value for UserAgent (size of attachments) */
};
}
#endif
